﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace MyWCFService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "MyService" in code, svc and config file together.
    public class MyService : IMyService
    {
        public string WelcomeMSg()
        {
            return "Starting the Service";
        }

        public float Calculate(att t)
        {
            if (t.op == '+')
            {
                return t.firstnumber + t.secondnumber;
            }
            else if (t.op == '-')
            {
                return t.firstnumber - t.secondnumber;
            }

            else
                return 0;
        }
    }
}
